package com.ucode.cgms.service;

import com.ucode.cgms.mapper.CgmsJointServiceUserMapper;
import com.ucode.model.cgms.CgmsJointServiceUser;
import com.ucode.springboot.starter.mybatis.core.base.BaseService;

import java.util.List;

/**
 * 陪玩订单联合服务人员 Service
 * @Author: liliang
 * @Date: 2025/6/10 21:11
 * @Version: 1.0
 */
public interface CgmsJointServiceUserService extends BaseService<Long, CgmsJointServiceUser, CgmsJointServiceUserMapper> {

    /**
     * 查询订单服务人员列表
     * @param orderId
     * @return
     */
    public List<CgmsJointServiceUser> queryListByOrderId(Long orderId);

    /**
     * 查询订单服务人员
     * @param orderId
     * @param serviceUserId
     * @return
     */
    public CgmsJointServiceUser queryOne(Long orderId, Long serviceUserId);

    /**
     * 删除订单服务人员
     * @param userId 接单人
     * @param id
     * @return
     */
    public int delete(Long userId, Long id);

}
